package com.wash.shoes.controller.pc;

import com.wash.shoes.service.MtAuthService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author lijianguo
 * @Date 27/08/2024 6:20
 * 请输入类的简介
 **/
@Log4j2
public class BaseController {

    @Autowired
    MtAuthService mtAuthService;

    /**
     * @author lijianguo
     * @Date 13/09/2024
     * 获取 59的最新的 token
     **/
    protected String getKhLastToken(String developerId) {
        return getToken("59", developerId);
    }

    /**
     * @author lijianguo
     * @Date 13/09/2024
     * token
     **/
    private String getToken(String type, String developerId) {
        return mtAuthService.getLastTokenStr(type, null, developerId);
    }
}
